package com.murray.assignment.service.impl;

import com.murray.assignment.mapper.CategoryMapper;
import com.murray.assignment.pojo.Category;
import com.murray.assignment.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/6/12
 * @Time 20:04
 */
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> findAll() {
        return categoryMapper.findAll();
    }
}
